#ifndef GRAPHICSVIEW_H
#define GRAPHICSVIEW_H

#include "triangle.h"
#include "circle.h"
#include <QGraphicsView>
#include <QTimer>


class GraphicsView : public QGraphicsView
{
    Q_OBJECT

public:
    explicit GraphicsView(QGraphicsView *parent = 0);
    ~GraphicsView();

private:
    QGraphicsScene  *scene;
    QTimer          *timer;
    QGraphicsTextItem* text = nullptr;
    int count = 0;

private slots:
    void newTriangle();
    void removeTriangle();
};

#endif // GRAPHICSVIEW_H
